package ch06;

class _03_TvTest3 {
	public static void main(String args[]) {
		Tv t1 = new Tv();
		Tv t2 = new Tv();
		System.out.println("t1 channel: " + t1.channel);
		System.out.println("t2 channel: " + t2.channel);
		
		t2 = t1;
		t1.channel = 7;
		System.out.println("t1 channel has changed to 7.");

		System.out.println("t1 channel: " + t1.channel);
		System.out.println("t2 channel: " + t2.channel);
	}
}
/*
t1 channel: 0
t2 channel: 0
t1 channel has changed to 7.
t1 channel: 7
t2 channel: 7
*/